<!DOCTYPE html>
<html>
<body>
<p id="foo">
<output form="foo" id="foo"></output>
</p>
<script>
if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.waitUntilDone();
}
window.onload = function () {
    document.body.removeChild(document.querySelector("p"));
    document.body.innerHTML = 'PASS; no crash.';
    if (window.testRunner)
        testRunner.notifyDone();
};
</script>
</body>
</html>
